package com.ninong.ker.admin.service.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.activiti.engine.repository.ProcessDefinition;

/**
 * @author jmz
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DefinitionIdDTO {
    private String deploymentId;
    private String resourceName;

    public DefinitionIdDTO(ProcessDefinition processDefinition) {
        this.deploymentId = processDefinition.getDeploymentId();
        this.resourceName = processDefinition.getResourceName();
    }
}
